import { screen } from '@testing-library/react';
export default function PeekCanvas(canvas: HTMLCanvasElement|null):CanvasRenderingContext2D|null {
    if(canvas){
        canvas.width=window.screen.width;
        canvas.height=window.screen.height;
    }
    const ctx = canvas?.getContext("2d");
    return ctx!;
}